---
title: Page Visibility API
slug: Web/API/Page_Visibility_API
tags:
  - API
  - DOM
  - Documents
  - Hidden Pages
  - Hiding Pages
  - Intermediate
  - Page Visibility
  - Page Visibility API
  - Showing Pages
  - Tutorials
  - Visibility
  - Visible Pages
---

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{Compat("api.Document.visibilityState")}}</p>
